"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var core_1 = require("@nestjs/core");
var rxjs_1 = require("rxjs");
var operators_1 = require("rxjs/operators");
function bootstrap(port, host, module, httpServer, options) {
    var pipes = [];
    for (var _i = 5; _i < arguments.length; _i++) {
        pipes[_i - 5] = arguments[_i];
    }
    return (_a = rxjs_1.from(core_1.NestFactory.create(module, httpServer, options))).pipe.apply(_a, pipes.concat([operators_1.switchMap(function (app) {
            return rxjs_1.from(app.listen(port, host));
        })]));
    var _a;
}
exports.bootstrap = bootstrap;
